//
//  MCUserModel.m
//  MicroChat
//
//  Created by Mac on 2018/5/23.
//  Copyright © 2018年 stoneobs.qq.com. All rights reserved.
//

#import "MCUserModel.h"

@implementation MCUserModel
+ (NSDictionary *)mj_replacedKeyFromPropertyName{
    return @{@"userID":@"id"};
}
- (RCUserInfo *)userInfo{
    RCUserInfo *userInfo =  [RCUserInfo new];
    userInfo.userId = self.userID.description;
    userInfo.name = self.user_nick;
    if (!userInfo.name.length) {
        userInfo.name = @"金冠用户";
    }
    userInfo.portraitUri = self.user_icon;
    return userInfo;
    
}
@end
